package com.RyanRestaurant.Service.Impl;

import com.RyanRestaurant.Entity.User;
import com.RyanRestaurant.Mapper.UserMapper;
import com.RyanRestaurant.Service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class UserServiceImpl implements UserService {


    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(User user) {
        return userMapper.login(user);
    }
}
